package com.yunwaikeji.gy_tool_library.mvvm.repository

import io.reactivex.disposables.CompositeDisposable
import io.reactivex.disposables.Disposable

class GYRepository {
    private val mCompositeDisposable by lazy { CompositeDisposable() }

    fun addSubscribe(disposable: Disposable) = mCompositeDisposable.add(disposable)

    fun unSubscribe() = mCompositeDisposable.dispose()
}